+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
+Sat Aug 29 14:50:56 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * gdk/gdkcolor.c:
+ (gdk_colormap_new) (gdk_colormap_get_system):
+ quell some warnings with g_hash_table_new
+
+ * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery
+ when we're done with it
+
+ * gtk/itemfactory.c:
+ (gtk_item_factory_from_path):
+ (gtk_item_factory_create_item): free some strings
+
+ * gtk/gtklabel.c:
+ (gtk_label_finalize): free label->pattern when done
+ (gtk_label_parse_uline): null terminate pattern string, delete
+ some duplicated code
+
+ * gtk/testthreads.c: add #include <unistd.h> for sleep()
+
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
private->info = g_new0 (GdkColorInfo, colormap->size);
colormap->colors = g_new (GdkColor, colormap->size);
- private->hash = g_hash_table_new (gdk_color_hash,
- gdk_color_equal);
+ private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
+ (GCompareFunc) gdk_color_equal);
private->private_val = private_cmap;
private->xcolormap = XCreateColormap (private->xdisplay, gdk_root_window,
private->info = g_new0 (GdkColorInfo, colormap->size);
colormap->colors = g_new (GdkColor, colormap->size);
- private->hash = g_hash_table_new (gdk_color_hash,
- gdk_color_equal);
+ private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
+ (GCompareFunc) gdk_color_equal);
gdk_colormap_sync (colormap, TRUE);
}
private->info = g_new0 (GdkColorInfo, colormap->size);
colormap->colors = g_new (GdkColor, colormap->size);
- private->hash = g_hash_table_new (gdk_color_hash,
- gdk_color_equal);
+ private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
+ (GCompareFunc) gdk_color_equal);
private->private_val = private_cmap;
private->xcolormap = XCreateColormap (private->xdisplay, gdk_root_window,
private->info = g_new0 (GdkColorInfo, colormap->size);
colormap->colors = g_new (GdkColor, colormap->size);
- private->hash = g_hash_table_new (gdk_color_hash,
- gdk_color_equal);
+ private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
+ (GCompareFunc) gdk_color_equal);
gdk_colormap_sync (colormap, TRUE);
}
return;
}
+ g_free (query);
+
/* prematurely abort if the group/entry is already locked
*/
if (accel_group->lock_count > 0)
fname[i + 1] = 0;
item = g_hash_table_lookup (class->item_ht, fname);
+
+ g_free (fname);
+
if (item && item->widgets)
return gtk_item_factory_from_widget (item->widgets->data);
if (!gtk_item_factory_parse_path (entry->path,
&path, &parent_path, &name))
return;
-
+
parent = gtk_item_factory_get_widget (ifactory, parent_path);
if (!parent)
{
callback_type,
item_type_path,
widget);
+
+ g_free (path);
}
void
label = GTK_LABEL (object);
g_free (label->label);
+ if (label->pattern) g_free (label->pattern);
gtk_label_free_rows (label);
(* GTK_OBJECT_CLASS (parent_class)->finalize) (object);
p = string;
q = name;
r = pattern;
- underscore = FALSE;
while (*p)
{
p++;
}
*q = 0;
-
+ *r = 0;
+
gtk_label_set (label, name);
gtk_label_set_pattern (label, pattern);
* Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
+#include <unistd.h>
#include <gtk/gtk.h>
#include "../config.h"
* Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
+#include <unistd.h>
#include <gtk/gtk.h>
#include "../config.h"